#pragma once

#include <iostream>
#include <functional>

typedef std::function<int(int, int)> manager;

class Task
{
public:
    Task() { }

    Task(int x, int y, manager func)
        : _x(x), _y(y), _func(func)
    {  }

    int operator()()
    {
        return _x + _y;
    }

    int get_x() 
    { 
        return _x; 
    }

    int get_y()
    {
        return _y;
    }

private:
    int _x;
    int _y;
    manager _func;
};